package com.xinzhi.controller;

import com.xinzhi.service.ReasonforService;
import com.xinzhi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ReasonforController {
    /**
     * 特殊加分申诉审核的查询接口
     */
    @Autowired
    private ReasonforService reasonforService;
    @GetMapping("/selectappraisal")
    public Result selectappraisal(){
        return reasonforService.selectappraisal();
    }


    /**
     * 逻辑删除接口
     */

    @PostMapping("/delete")
    public Result delete(String Causeofappeal,Integer deleted){
        return reasonforService.updateReasonfor(Causeofappeal,deleted);
    }
}
